import Vue from 'vue'
import Vuex from 'vuex'
import student from './model/student.js'
import subject from './model/subject.js'
import classes from './model//classes.js'
import teacher from './model/teachers.js'



Vue.use(Vuex)

export default new Vuex.Store({
  state: {
       userInfo:null
  },
  mutations: {
     //调用mutations的方法：仓库对象.commit('')
    SET_USERINFO(state,payload){
       state.userInfo=payload
    }
  },
  actions: {
  },
  modules: {
    student,subject,classes,teacher
  }
})
